package com.hy.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.hy.bean.OrdersPartstable;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class OrdersPartsDto {
    /**
     *
     */
    private Integer id;

    /**
     *
     */
    private Integer orderId;

    /**
     *
     */
    private Integer client_id;

    /**
     *
     */
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")//存日期时使用
    private Date reachTime;

    private Integer creator;
    /**
     *
     */
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")//存日期时使用
    private Date createTime;

    /**
     * 缺货状态 (0为有货   1为不足)
     */
    private String isHave;

    /**
     *
     */
    private Integer lastUpdatePerson;

    /**
     *
     */
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")//存日期时使用
    private Date lastUpdateTime;

    /**
     *
     */
    private String remark;

    private String audit_status;

    private String okstatus;

    private OrdersPartstableDto[] particularsData;
}
